<#import "/common/taglibs/spring.ftl" as spring/>
<#macro tableColumnButtons resourceIdentity='' buttons=['view','edit','delete']>
<div class="table-column-actions d-none">
    <#if buttons?seq_contains('view')>
        <@security.authorize access="hasAuthority('${resourceIdentity!}:read')">
            <button class="btn btn-outline-primary m-btn m-btn--icon btn-sm m-btn--icon-only m-btn--pill" data-type="view" data-skin="dark" data-toggle="m-tooltip" title data-original-title='<@spring.message code="button.add" />'><i class="la la-plus"></i></button>
        </@security.authorize>
    </#if>
    <#if buttons?seq_contains('edit')>
        <@security.authorize access="hasAuthority('${resourceIdentity!}:update')">
            <button class="btn btn-outline-info m-btn m-btn--icon btn-sm m-btn--icon-only m-btn--pill" data-type="edit" data-skin="dark" data-toggle="m-tooltip" title data-original-title='<@spring.message code="button.edit" />'><i class="la la-edit"></i></button>
        </@security.authorize>
    </#if>
    <#if buttons?seq_contains('delete')>
        <@security.authorize access="hasAuthority('${resourceIdentity!}:delete')">
            <button class="btn btn-outline-danger m-btn m-btn--icon btn-sm m-btn--icon-only m-btn--pill" data-type="delete" data-skin="dark" data-toggle="m-tooltip" title data-original-title='<@spring.message code="button.delete" />'><i class="la la-remove"></i></button>
        </@security.authorize>
    </#if>

    <#nested>
</div>
</#macro>